/*
 * Powered By dico
 * Since 2017 - 2018
 */
package com.seeyoui.kensite.bussiness.orderlang.warehouse.domain;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.seeyoui.kensite.common.base.domain.DataEntity;
import com.seeyoui.kensite.common.util.excel.annotation.ExcelField;

/**
 * Warehouse
 * @author dico
 * @version 2.0
 * @since 1.0
 * @date 2018-02-07
 */

@JsonIgnoreProperties(ignoreUnknown = true)
public class Warehouse extends DataEntity<Warehouse> {
	private static final long serialVersionUID = 1L;
	@NotNull
	@Size(min=1,max=32)
	@ExcelField(title="经销商", type=1, align=2, sort=7, mod="ol_warehouse|DISTRIBUTOR_ID")
	private String distributorId;//经销商
	@NotNull
	@Size(min=1,max=50)
	@ExcelField(title="仓库名称", type=1, align=2, sort=8, mod="ol_warehouse|WAREHOUSE_NAME")
	private String warehouseName;//仓库名称
	@NotNull
	@ExcelField(title="仓库所在城市", type=1, align=2, sort=9, mod="ol_warehouse|CITY_ID")
	private String cityId;//仓库所在城市
	@NotNull
	@ExcelField(title="仓库详细地址", type=1, align=2, sort=10, mod="ol_warehouse|ADDRESS")
	private String address;//仓库详细地址
	@NotNull
	@ExcelField(title="负责人姓名", type=1, align=2, sort=11, mod="ol_warehouse|MANAGER")
	private String manager;//负责人姓名
	@NotNull
	@ExcelField(title="负责人电话", type=1, align=2, sort=12, mod="ol_warehouse|TEL")
	private String tel;//负责人电话
	@NotNull
	@Min(2)
	@ExcelField(title="仓库面积（平米）", type=1, align=2, sort=13, mod="ol_warehouse|AREA")
	private String area;//仓库面积（平米）
	@NotNull
	@Min(0)
	@Max(100)
	@ExcelField(title="已使用百分比", type=1, align=2, sort=14, mod="ol_warehouse|USED_PERCENT")
	private String usedPercent;//已使用百分比
	@ExcelField(title="备注", type=1, align=2, sort=15, mod="ol_warehouse|REMARK")
	private String remark;//备注

	public void setDistributorId(String distributorId) {
		this.distributorId = distributorId;
	}

	public String getDistributorId() {
		return this.distributorId;
	}
	public void setWarehouseName(String warehouseName) {
		this.warehouseName = warehouseName;
	}

	public String getWarehouseName() {
		return this.warehouseName;
	}
	public void setCityId(String cityId) {
		this.cityId = cityId;
	}

	public String getCityId() {
		return this.cityId;
	}
	public void setAddress(String address) {
		this.address = address;
	}

	public String getAddress() {
		return this.address;
	}
	public void setManager(String manager) {
		this.manager = manager;
	}

	public String getManager() {
		return this.manager;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getTel() {
		return this.tel;
	}
	public void setArea(String area) {
		this.area = area;
	}

	public String getArea() {
		return this.area;
	}
	public void setUsedPercent(String usedPercent) {
		this.usedPercent = usedPercent;
	}

	public String getUsedPercent() {
		return this.usedPercent;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getRemark() {
		return this.remark;
	}
}